package me.softwareengineer.guice.rendering.parser;

import java.io.Reader;

import me.softwareengineer.guice.rendering.listener.Listener;

/**
 * 
 * Parses {@link Reader} but instead of generating DOM tree. It sends events to
 * {@link Listener}
 * 
 * @author yadtahir
 * 
 */
//TODO delete this class
@Deprecated
public interface StreamParser {
	/**
	 * Parses the content of the given reader and sends {@link Event}s to the
	 * passed listener
	 * 
	 * @param reader
	 *            the reader to get the content from.
	 * @param listener
	 *            the listener to where the events are sent.
	 */
	void parse(Reader reader, Listener listener);
}
